﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Learn.CommentList" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div id="title">
					<div class="h1"><%=GetText("C0105",new string[]{GetLanguageText(learnVal)})%></div>
					<div class="copyright"><a href="/learn/language_index.htm"><%=GetText("M0013")%></a> > <a href="/Learn-<%=learnVal %>.htm"><%=GetText("C0105",new string[]{GetLanguageText(learnVal)})%></a> > <%=GetText("LN012")%></div>
				</div>
				<div class="Center9001">
					<div class="Center9001Right">
						<div class="Center9001content">
							<div class="black16b"><%=GetText("LN012")%></div>
							<div id="MainMessagePanel" class="margin20 DisplayNone " style=" background-color:#FF0000">
								<div class="MessagePanel4">
									<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;">
									<div id="MessageText"></div>
								</div>
							</div>
							<div class="learn_blackboard_post">
								<p><textarea id="txtLc" class="Input_blackboard_L" rows="4"></textarea><span name="__V_S" vt="0" elt1="txtLc" reg="[\s\S]{5,3000}" style="color:Red;display:none" class="validMsg"><br /><%=GetText("ST155",new string[]{"5","3000"})%></span></p>
								<p><input type="button" id="btnPost"  <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"AddComment()\"":"onclick=\"NotAffirm()\""%> class="button" value="<%=GetText("C0046")%>" /></p>
							</div>
							<div id="CommentList" class="learn_peopleAll Content628">
								<asp:Repeater ID="cList" runat="server">
									<ItemTemplate>
										<div class="learn_people_alllist">
											<div class="learn_people_alllist_av pic50"><a class="photo_50" href="<%#Eval("memberno","/{0}.htm") %>"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div>
											<div class="learn_people_alllist_if"><a href='<%#Eval("memberno","/{0}.htm")%>'><%#HttpUtility.HtmlEncode(Eval("nickname").ToString())%></a> <span class="grey10"><%#FormatDiffDate(GetText("C0036"), Eval("DiffDate").ToString())%></span><p><%#Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("content").ToString().Replace("\n", "<br/>"))%></p></div>
											<div class="Clear"></div>
										</div>
									</ItemTemplate>
								</asp:Repeater>
							</div>
							<div id="divPage" class="content628 DisplayNone"></div>
						</div>
					</div>
					<div class="Center9001left">
						<div id="ad_site"><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
					</div>
					<div class="Clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<span id="valComment" style="color: Red; display: none;" class="red10"></span>
<div id="CommentTemplate" style="display: none">
	<div class="learn_people_alllist">
		<div class="learn_people_alllist_av"><div class="pic50"><a class="Photo_50" href='/$MemberNo$.htm'>$Avatar$</a></div></div>
		<div class="learn_people_alllist_if"><a  href='/$MemberNo$.htm'>$NickName$</a> <span class="grey10">$CreateDate$</span><p>$Content$</p></div>
		<div class="Clear"></div>
	</div>
</div>
<%--
var Page_Validators =  new Array($get("valComment"));
var TmpObj = $get("valComment");
TmpObj.controltovalidate = "txtLc";
TmpObj.errormessage = "<b><%=GetText("C1010")%></b><br /><%=GetText("ST155",new string[]{"5","3000"})%>";
TmpObj.display = "None";
TmpObj.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
TmpObj.validationexpression = "[\\s\\S]{5,3000}";
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") ValidatorOnLoad();

var warningIconImageUrl = "<%=RootPath%>Scripts/AjaxTools/images/alert-small.gif";
var closeImageUrl = "<%=RootPath%>Scripts/AjaxTools/images/close.gif";
function CreateValid()
{
	$create(AjaxControlToolkit.ValidatorCalloutBehavior, 
	{"closeImageUrl":closeImageUrl,"highlightCssClass":"validatorCalloutHighlight",
	"id":"valComment","warningIconImageUrl":warningIconImageUrl}, null, null, $get("valComment"));
}
--%>
<asp:Literal ID="litScript" runat="server" />
<script>
var gDateFormat = "<%=GetText("C0033")%>";
var gStrDate = "<%=GetText("C0034")%>";
var gStrDate1 = "<%=GetText("C0036")%>";
var C0090 = "<%=GetText("C0090")%>";
var C0035 = "<%=GetText("C0035")%>";

var MessageTextS = "<%=GetText("C1003")%>";
var MessageTextF = "<%=GetText("C1011")%>";
var MessageImageS = "/images/ico_info.gif";
var MessageImageF = "/images/ico_info.gif";
</script>